<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";		
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>信息</title>
    <c:import url="/liger/liger.jsp"></c:import>
    
    <style type="text/css">
    	body{font-size:12px;}
    	
    	.tform{font-size:13px; width:100%;}
    	
    	.lh{background-color:#004080;#ffffff;}
    
		.tform th{font-weight:600;padding:3 0;}
		
		.tform td{background-color:#fff;padding:3 0;}
    </style>
    
    <script type="text/javascript">
    function f_edit(){
    	var url = "<%=basePath%>hrController.do?wbEdit";
    	$.ligerDialog.waitting("操作进行中,请稍后...");
    	$.ajax({
    		url:url,
    		dataType:'json',
    		data:decodeURIComponent($("#theForm").serialize(),true),
    		success: function(msg) {
                  alert(msg.msg);
            },
            error: function(XMLHttpRequest, textStatus, errorThrown) {
            	alert("操作错误: "+XMLHttpRequest.status);
	   			//alert(XMLHttpRequest.status);
                //alert(XMLHttpRequest.readyState);
                //alert(textStatus);
            },
            complete: function(XMLHttpRequest, textStatus) {
               $.ligerDialog.closeWaitting();
            }
    	});
    }
    
    </script>
  </head>
  
  <body>
  
  <c:choose>
  	<c:when test="${empty xj}">
  		<table class="tform">
  		<tr>
  		<th colspan=4 class="lh"><h4 style="color:#ffffff;">外包工薪酬编辑流程</h4></td>
  		</tr>
  		<tr>
  		<td>
  	    各单位在“丽水移动人力资源管理平台”—“ <br>
  	    外包员工绩效考核”中对员工绩效情况进行填写上报，规定的模版可供各县市下载，<br>
  	    且县市只允许下载自己的分公司的考核人员信息，再根据模版填写并批量导入；<br>
		每月月初由市公司将上月纳入考核的外包人员基本信息导入系统，<br>
		如：员工编号、单位、姓名、用工性质、学历、入职时间、是否处于试用期（根据入职时间系统自动判定，试用期两个月）、考核等级、备注<br>
		注：市人力资源部有新增、删除、修改的权限。
  		</td>
  		</tr>
  	</c:when>
  	
  	<c:otherwise>
  		<form id="theForm" method="post">
  		<table class="tform">
  		<tr>
  		<th colspan=4 style="background-color:#004080;#ffffff;"><h4 style="color:#ffffff;">员工休假信息编辑-${user.employeeName}</h4></td>
  		</tr>
  		
  		<tr>
  		<th width="80">职位</th><td>${user.position}</td>
  		</tr>
  		
  		<tr>
  		<th>类型</th><td>${user.employeeType}</td>
  		</tr>
  		
  		<tr>
  		<th>员工编号</th><td>${user.employeeId}</td>
  		</tr>
  		
  		<tr>
  		<th>员工姓名</th><td>${user.employeeName}</td>
  		</tr>
  		
  		<tr>
  		<th>组织</td><td>${user.deptName}</td>
  		</tr>
  		
  		<tr>
  		<th>联系电话</th><td>${user.phone}</td>
  		</tr>
  		
  		<tr>
  		<th>学历</th><td>${user.education}</td>
  		</tr>
  		
  		<tr>
  		<th>工龄</th><td>${user.workAge}</td>
  		</tr>
  		
  		<tr>
  		<th>入职时间</th><td><fmt:formatDate value="${user.workDate}" pattern="yyyy-MM-dd"/></td>
  		</tr>
  		
  		
  		<tr>
  		<th>考核得分</th><td><input type="text" name="khScore" value="${xj.khScore }"></td>
  		</tr>
  		
  		<tr>
  		<th>绩效等级</th><td><input type="text" name="khLevel" value="${xj.khLevel }"></td>
  		</tr>
  		
  		<tr>
  		<th>系数</th><td><input type="text" name="khPer" value="${xj.khPer }"></td>
  		</tr>
  		 
  		<tr>
  		<th>备注</th><td><textarea rows="2" cols="18" name="remark" value="${xj.remark}">${xj.remark}</textarea></td>
  		</tr>
  		
  		
  		<tr>
  		<td colspan=2>
  		<input type="hidden" name="id" value="${xj.id}">
  		<input type="button" onclick="f_edit();" value=" 保 存 ">
  		<input type="reset" value=" 重 置 ">
  		</td>
  		</tr>
  		</table>
  		</form>
  	</c:otherwise>
  </c:choose>
  
  
  
  </body>
</html>



